package cn.stylefeng.guns.modular.business.frequency.cmcompanyline.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 客户线路表
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CmCompanyLineParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 客户ID
     */
    @NotNull(message = "客户ID不能为空",groups = {add.class,edit.class})
    private Long companyId;

    /**
     * 出发地
     */
    @NotNull(message = "出发地不能为空",groups = {add.class,edit.class})
    private String startCode;

    /**
     * 目的地
     */
    @NotNull(message = "目的地不能为空",groups = {add.class,edit.class})
    private String destinationCode;

    /**
     * 路线金额
     */
    private BigDecimal transportFee;

    /**
     * 线路名称
     */
    @NotNull(message = "线路名称不能为空",groups = {add.class,edit.class})
    private String lineName;

    /**
     * 车型名称
     */
    @NotNull(message = "车型名称不能为空",groups = {add.class,edit.class})
    private String carType;

}
